import React from 'react';
import { Typography } from 'antd';
const { Text } = Typography;
export const renderCellText = (key, ellipsis) => (text, record, index) => {
  return (
    <Text ellipsis={{ tooltip: !!ellipsis }}>
      {typeof key == 'function' ? key(record) : record[key]}
    </Text>
  );
};
